aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/cassettes/test_status_post[Content warning-private].yaml
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-private].yaml')
-rw-r--r--tests/cassettes/test_status_post[Content warning-private].yaml42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-private].yaml b/tests/cassettes/test_status_post[Content warning-private].yaml
index cffdf64..175d679 100644
--- a/tests/cassettes/test_status_post[Content warning-private].yaml
+++ b/tests/cassettes/test_status_post[Content warning-private].yaml
@@ -20,18 +20,18 @@ interactions:
20 uri: http://localhost:3000/api/v1/statuses 20 uri: http://localhost:3000/api/v1/statuses
21 response: 21 response:
22 body: 22 body:
23 string: '{"id":"109304277094978442","created_at":"2022-11-07T19:55:07.822Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content 23 string: '{"id":"109336680576827737","created_at":"2022-11-13T13:15:45.716Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
24 warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304277094978442","url":"http://localhost:3000/@mastodonpy_test/109304277094978442","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 24 warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109336680576827737","url":"http://localhost:3000/@mastodonpy_test/109336680576827737","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
25 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 25 test suite","website":null},"account":{"id":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
26 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI 26 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
27 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":8,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' 27 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":8,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
28 headers: 28 headers:
29 Cache-Control: 29 Cache-Control:
30 - no-store 30 - no-store
31 Content-Security-Policy: 31 Content-Security-Policy:
32 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 32 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
33 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 33 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
34 style-src ''self'' http://localhost:3000 ''nonce-2C8EzM4kDC4k5FWp2MyOOw==''; 34 style-src ''self'' http://localhost:3000 ''nonce-rfNmtensf+c+Jd8MhH//6g=='';
35 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 35 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
36 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 36 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
37 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 37 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -41,7 +41,7 @@ interactions:
41 Content-Type: 41 Content-Type:
42 - application/json; charset=utf-8 42 - application/json; charset=utf-8
43 ETag: 43 ETag:
44 - W/"cbf49226f07f9e72edb0146696c41b5c" 44 - W/"65dbe30639d5cc193b07ba5db874a018"
45 Referrer-Policy: 45 Referrer-Policy:
46 - strict-origin-when-cross-origin 46 - strict-origin-when-cross-origin
47 Transfer-Encoding: 47 Transfer-Encoding:
@@ -59,13 +59,13 @@ interactions:
59 X-RateLimit-Limit: 59 X-RateLimit-Limit:
60 - '300' 60 - '300'
61 X-RateLimit-Remaining: 61 X-RateLimit-Remaining:
62 - '208' 62 - '207'
63 X-RateLimit-Reset: 63 X-RateLimit-Reset:
64 - '2022-11-07T21:00:00.843062Z' 64 - '2022-11-13T15:00:00.737170Z'
65 X-Request-Id: 65 X-Request-Id:
66 - e9a6dc5d-71ce-490a-b8b5-e5bf53aa8c98 66 - d61d88ad-bfd1-4534-a225-4b669abcd894
67 X-Runtime: 67 X-Runtime:
68 - '0.033302' 68 - '0.032888'
69 X-XSS-Protection: 69 X-XSS-Protection:
70 - 1; mode=block 70 - 1; mode=block
71 status: 71 status:
@@ -87,21 +87,21 @@ interactions:
87 User-Agent: 87 User-Agent:
88 - tests/v311 88 - tests/v311
89 method: DELETE 89 method: DELETE
90 uri: http://localhost:3000/api/v1/statuses/109304277094978442 90 uri: http://localhost:3000/api/v1/statuses/109336680576827737
91 response: 91 response:
92 body: 92 body:
93 string: '{"id":"109304277094978442","created_at":"2022-11-07T19:55:07.822Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content 93 string: '{"id":"109336680576827737","created_at":"2022-11-13T13:15:45.716Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
94 warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304277094978442","url":"http://localhost:3000/@mastodonpy_test/109304277094978442","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 94 warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109336680576827737","url":"http://localhost:3000/@mastodonpy_test/109336680576827737","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
95 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 95 test suite","website":null},"account":{"id":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
96 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI 96 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
97 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' 97 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
98 headers: 98 headers:
99 Cache-Control: 99 Cache-Control:
100 - no-store 100 - no-store
101 Content-Security-Policy: 101 Content-Security-Policy:
102 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 102 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
103 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 103 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
104 style-src ''self'' http://localhost:3000 ''nonce-BVP5tGSyS5DUcJUlRM6Xng==''; 104 style-src ''self'' http://localhost:3000 ''nonce-rWcdQF9v9UTF2N85hDCdwA=='';
105 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 105 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
106 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 106 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
107 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 107 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -111,7 +111,7 @@ interactions:
111 Content-Type: 111 Content-Type:
112 - application/json; charset=utf-8 112 - application/json; charset=utf-8
113 ETag: 113 ETag:
114 - W/"488a9bf9961efde4cc3454ceb9c8630c" 114 - W/"4ae40bd592234acb27fad15567957e00"
115 Referrer-Policy: 115 Referrer-Policy:
116 - strict-origin-when-cross-origin 116 - strict-origin-when-cross-origin
117 Transfer-Encoding: 117 Transfer-Encoding:
@@ -127,9 +127,9 @@ interactions:
127 X-Permitted-Cross-Domain-Policies: 127 X-Permitted-Cross-Domain-Policies:
128 - none 128 - none
129 X-Request-Id: 129 X-Request-Id:
130 - 201436cd-fda5-4b93-8914-323585d7a885 130 - 3803560d-4805-480f-ae80-73dd1590fcf4
131 X-Runtime: 131 X-Runtime:
132 - '0.024819' 132 - '0.025297'
133 X-XSS-Protection: 133 X-XSS-Protection:
134 - 1; mode=block 134 - 1; mode=block
135 status: 135 status:
Powered by cgit v1.2.3 (git 2.41.0)